﻿<%@ Page language="C#" MasterPageFile="~site/themes/default/theme.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Register Tagprefix="EBE" Namespace="CKS.EBE.WebControls" Assembly="CKS.EBE, Version=0.1.0.0, Culture=neutral, PublicKeyToken=3e8b700c069fb747" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderMain" runat="server">
	
	<EBE:ContactForm runat="server">
		<Template>
			<asp:placeholder runat="server" id="idForm">
				<asp:Label id="idError" runat="server"/><br/>
				Name<br/> <asp:TextBox runat="server" id="idName" cssClass="nameBox commentBox"/> 
				<asp:RequiredFieldValidator Display="dynamic" ID="UserNameRequired" runat="server" ControlToValidate="idName" ErrorMessage="Name is required."/>
				<br/>
				Email<br/> <asp:TextBox runat="server" id="idEmail" cssClass="emailBox commentBox"/> 
				<asp:RequiredFieldValidator Display="dynamic" ID="idEmailRequired" runat="server" ControlToValidate="idEmail" ErrorMessage="Email is required."/>
				<asp:RegularExpressionValidator Display="dynamic" ID="idEmailValidator" runat="server" ControlToValidate="idEmail"  
	             ErrorMessage="Email address is not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"/><br/>

				Subject<br/> <asp:TextBox runat="server" id="idSubject" cssClass="commentBox"/> 
				<asp:RequiredFieldValidator Display="dynamic" ID="idSubjectRequired" runat="server" ControlToValidate="idSubject" ErrorMessage="You need to enter a subject"/><br/>
				
				Message<br/><asp:TextBox cssclass="commentsBox" runat="server" id="idMessage" TextMode="MultiLine" rows="8" Width="435"/> <br/>
				<asp:RequiredFieldValidator Display="dynamic" ID="idMessageValidator" runat="server" ControlToValidate="idMessage" ErrorMessage="What did you want to say?"/><br/>
	            <EBE:CaptchaValidator id="idCaptchaValidator" runat="server" LabelText="CAPTCHA Image Validation" ErrorMessage="CAPTCHA validation failed." /><br />
				<asp:Button runat="server" id="idSubmit" Text="Submit"/> 
			</asp:placeholder>
			<asp:placeholder runat="server" id="idResponse" visible="false">
				<center>Thank you, your message has been sent</center>
			</asp:placeholder>
		</Template>
	
	</EBE:ContactForm>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderBlogComments" runat="server">
</asp:Content>
